import request from '@/utils/request'

// 查询占道上报列表
export function listJeevesReport(query) {
  return request({
    url: '/check/jeevesReport/list',
    method: 'get',
    params: query
  })
}

// 查询占道上报详细
export function getJeevesReport(jeevesReportId) {
  return request({
    url: '/check/jeevesReport/' + jeevesReportId,
    method: 'get'
  })
}

// 新增占道上报
export function addJeevesReport(data) {
  return request({
    url: '/check/jeevesReport',
    method: 'post',
    data: data
  })
}

// 修改占道上报
export function updateJeevesReport(data) {
  return request({
    url: '/check/jeevesReport',
    method: 'put',
    data: data
  })
}

// 删除占道上报
export function delJeevesReport(jeevesReportId) {
  return request({
    url: '/check/jeevesReport/' + jeevesReportId,
    method: 'delete'
  })
}
// 查询占道报备未撤场的单子
export function selectNotWithdrawnList(query) {
  return request({
    url: '/check/jeevesReport/selectNotWithdrawnList',
    method: 'get',
    params: query
  })
}
